import request from '@/utils/request'

// 查询积分变化历史记录列表
export function listIntegrationHistory(query) {
  return request({
    url: '/sms/integrationHistory/list',
    method: 'get',
    params: query
  })
}

// 查询积分变化历史记录详细
export function getIntegrationHistory(id) {
  return request({
    url: '/sms/integrationHistory/' + id,
    method: 'get'
  })
}

// 新增积分变化历史记录
export function addIntegrationHistory(data) {
  return request({
    url: '/sms/integrationHistory',
    method: 'post',
    data: data
  })
}

// 修改积分变化历史记录
export function updateIntegrationHistory(data) {
  return request({
    url: '/sms/integrationHistory',
    method: 'put',
    data: data
  })
}

// 删除积分变化历史记录
export function delIntegrationHistory(id) {
  return request({
    url: '/sms/integrationHistory/' + id,
    method: 'delete'
  })
}
